package asn.match.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import asn.match.dao.RessourceDaoImpl;
import asn.match.model.Ressource;

@Service("ressourceService")
@Transactional(propagation=Propagation.SUPPORTS, readOnly=true)
public class RessourceServiceImpl implements RessourceService {

	@Autowired
	RessourceDaoImpl ressourceDaoImpl;
	
	@Override
	public void save(Ressource ressource) {
		this.ressourceDaoImpl.addRessource(ressource);
		// TODO Auto-generated method stub
		
	}

	@Override
	public void update(Ressource ressource) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(Ressource ressource) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public List<Ressource> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

}
